/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.jhelper.unit05.demo;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;


/**
 *
 * @author Administrator
 */
public class LianXi {

    public static void main(String[] args) throws FileNotFoundException {
        
       File file = new File("c:\\","text.txt");
       FileOutputStream f = new  FileOutputStream(file,false);
       PrintWriter p = new PrintWriter(f,true);
        
       p.println("hello");
       p.println("11-315");
       p.println("欢迎光临");
       
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
}
